package com.itheima.mybytestream;

public class Person {
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    //有参构造犯法
    public void method(String name, int age) {
        name = "zhangsan";
        age = 18;
    }

    public void say() {
        getContent();
    }

    public void getContent() {
        System.out.println("姓名" + name + "年龄" + age);
    }
}
